import java.util.ArrayList;

/**
 * Just to test out the deadlock stuff. Can be deleted when we're ready to turn in the project. 
 * @author dcreel121
 *
 */
public class DeadlockTester {
    
	public static void main(String[] pArgs) {
		
		ArrayList<String> boardLines = new ArrayList<String>();
		boardLines.add("#######");
		boardLines.add("#@    #");
		boardLines.add("#  $$ #");
		boardLines.add("#     #");
		boardLines.add("#    .#");
		boardLines.add("#   . #");
		boardLines.add("#######");
		
		Board b = new Board(boardLines);
		System.out.println("Should have 10 static deadlocks: " + b.getDeadlock().getStaticDLs().size());
		
		boardLines = new ArrayList<String>();
		boardLines.add("#########");
		boardLines.add("#@  .   #");
		boardLines.add("#       #");
		boardLines.add("#       #");
		boardLines.add("#    ####");
		boardLines.add("#    ####");
		boardLines.add("# $  ####");
		boardLines.add("#    ####");
		boardLines.add("#   $   #");
		boardLines.add("#      .#");
		boardLines.add("#       #");
		boardLines.add("#       #");
		boardLines.add("#########");
		
		b = new Board(boardLines);
		System.out.println("Should have 22 static deadlocks: " + b.getDeadlock().getStaticDLs().size());
		
		/*
		 * The second test has a problem with it thinking that empty spaces that lie outside the walls
		 * are deadlocks. But really it shouldn't effect us too much because we shouldn't be trying to
		 * move to those spaces anyways. 
		 * MK: removed the empty spaces, but still there are too many deadlocks 
		 */		
    }

}
